# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=mate-polkit
pkgver=1.28.1
pkgrel=0
pkgdesc="MATE Authentication Agent for PolicyKit"
url="https://github.com/mate-desktop/mate-polkit"
arch="all"
license="GPL-2.0-or-later"
depends="mate-common"
makedepends="polkit-dev libtool intltool gtk+3.0-dev gobject-introspection-dev"
subpackages="$pkgname-lang"
source="https://pub.mate-desktop.org/releases/${pkgver%.*}/mate-polkit-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--sysconfdir=/etc \
		--enable-static=no \
		--prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
fbe25e2f0beae8c681a38aef5bb213e719e45bf9f9d7685fc4f1a5d80d524340e706f9222f0acdd5f1b4a662de1d3a0c017ccabad0df35c8f4fe68526fad199c  mate-polkit-1.28.1.tar.xz
"
